//
//  YZMHomeOptionStockView.m
//  YZMicroStock
//
//  Created by apple on 17/8/1.
//  Copyright © 2017年 cqjr. All rights reserved.
//

#import "YZMHomeOptionStockView.h"

@interface YZMHomeOptionStockView ()

@property (weak, nonatomic) IBOutlet UIImageView *imgViewStockOne;


@property (weak, nonatomic) IBOutlet UILabel *labelStockA;

@property (weak, nonatomic) IBOutlet UILabel *labelStockA2;

@property (weak, nonatomic) IBOutlet UILabel *labelStockOne;

@property (weak, nonatomic) IBOutlet UILabel *labelStockD;


@property (weak, nonatomic) IBOutlet UIImageView *imageViewStockD;

@property (weak, nonatomic) IBOutlet UIView *viewLine;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintViewLineWidth;


@end

@implementation YZMHomeOptionStockView

- (void)awakeFromNib{
    [super awakeFromNib];
    [YZMSetBorderAndCornerRadius setView:self.labelStockOne borderWidth:1 borderColor:[YZMAppStyle colorForIconColor] cornerRadius:2];
    self.labelStockOne.textColor = [YZMAppStyle colorForIconColor];
    [YZMSetBorderAndCornerRadius setView:self.labelStockD borderWidth:1 borderColor:[YZMAppStyle colorForIconColor] cornerRadius:2];
    self.labelStockD.textColor = [YZMAppStyle colorForIconColor];
    self.viewLine.backgroundColor = [YZMAppStyle colorForSplitLine];
    self.constraintViewLineWidth.constant = 0.5;
    
#ifdef YZMicroStock
    self.labelStockA.textColor = [YZMAppStyle colorForWhite];
    self.labelStockA2.textColor = [YZMAppStyle colorForWhite];
#endif
    
}

- (IBAction)clickedBtnStockOne:(id)sender {
    if (self.stockOneBlock) {
        self.stockOneBlock();
    }
}

- (IBAction)clickedBtnStockD:(id)sender {
    if (self.stockDBlock) {
        self.stockDBlock();
    }
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
